<?php
declare(strict_types=1);

namespace SixShop\Wechat;

use SixShop\Core\ExtensionAbstract;
use SixShop\Wechat\Cron\AccessTokenCron;
use SixShop\Wechat\Hook\WechatUserHook;

class Extension extends ExtensionAbstract
{
    private const string EXTENSION_ID = 'wechat';
    public function  getExtensionID()
    {
        return self::EXTENSION_ID;
    }

    #[\Override]
    public function getHooks(): array
    {
        return [
            WechatUserHook::class
        ];
    }

    #[\Override]
    protected function getBaseDir(): string
    {
        return dirname(__DIR__);
    }

    #[\Override]
    public function getCronJobs(): array
    {
        return [
            AccessTokenCron::class,
        ];
    }
}